ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.Storage Namespace / NativeFileStream Class / Write Method / Write(Byte[],Int32,Int32) Method

In This Topic
    Write(Byte[],Int32,Int32) Method
    In This Topic
    When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
    Syntax
    'Declaration
     
    Public Overloads Overrides Sub Write( _
       ByVal buffer() As System.Byte, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) 
    public override void Write( 
       System.byte[] buffer,
       System.int offset,
       System.int count
    )

    Parameters

    buffer
    offset
    count
    Exceptions
    ExceptionDescription
    The sum of offset and count is greater than the buffer length.
    buffer is a null reference (Nothing in Visual Basic).
    offset or count is negative.
    An I/O error occured, such as the specified file cannot be found.
    The stream does not support writing.
    System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) was called after the stream was closed.
    See Also